package com.ruoyi.jpbi.service.impl;

import com.ruoyi.jpbi.domain.jianshe.Plancontrolcost;
import com.ruoyi.jpbi.mapper.PlancontrolcostMapper;
import com.ruoyi.jpbi.service.PlancontrolcostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlancontrolcostServiceImpl implements PlancontrolcostService {
    @Autowired
    PlancontrolcostMapper plancontrolcostMapper;


    @Override
    public List<Plancontrolcost> findAllByUser(Plancontrolcost plancontrolcost) {
        return plancontrolcostMapper.findAllByUser(plancontrolcost);
    }

    @Override
    public int insertPlancontrolcost(Plancontrolcost plancontrolcost) {
        return plancontrolcostMapper.insertPlancontrolcost(plancontrolcost);
    }

    @Override
    public Plancontrolcost findAllById(Long id) {
        return plancontrolcostMapper.findAllById(id);
    }

    @Override
    public int updatePlancontrolcost(Plancontrolcost plancontrolcost) {
        return plancontrolcostMapper.updatePlancontrolcost(plancontrolcost);
    }

    @Override
    public int deletePlancontrolcost(String ids) {
        return plancontrolcostMapper.deletePlancontrolcost(ids);
    }
}
